package com.hellobike.haxing.modules.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.hellobike.haxing.modules.order.entity.OrderGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Description: 拼团订单
 * @Author: haxing-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
public interface OrderGroupMapper extends BaseMapper<OrderGroup> {

    @Update("update t_order_group set deleted=1,update_time=now() where order_id=#{orderId} and user_id=#{userId}")
    void deleteOrderId(@Param("orderId") Long orderId, @Param("userId") Long userId);

}
